<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex settingsPage_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-stretch justify-between settingsPage_fd0_0'>
					<view class='flex flex-wrap align-center settingsPage_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  settingsPage_fd0_0_c0_c0'>&#xe794;</text>
					</view>
					<view class='flex flex-wrap align-center'>
						<text class='settingsPage_fd0_0_c1_c0'>设置</text>
					</view>
					<view class='flex align-center justify-end settingsPage_fd0_0_c2'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---基本设置flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch settingsPage_flex_1">
				<!-- <view class='flex flex-direction flex-wrap align-stretch settingsPage_fd1_0' @tap.stop="handleJumpDiy"
					data-type="navigateTo" :data-url="`/pages/xitongs/changeBingDingPhone/changeBingDingPhone`">
					<view class='flex flex-wrap align-center justify-between settingsPage_fd1_0_c0'>
						<text class='settingsPage_fd1_0_c0_c0'>修改绑定手机号</text>
						<text class='fu-iconfont2  settingsPage_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
				</view> -->
				<view class='flex flex-direction flex-wrap align-stretch settingsPage_fd1_1'>
					<!-- <view class='flex flex-wrap align-center justify-between settingsPage_fd1_0_c0'
						@tap.stop="openSetting">
						<text class='settingsPage_fd1_0_c0_c0'>小程序设置</text>
						<text class='fu-iconfont2  settingsPage_fd1_0_c0_c1'>&#xE7F2;</text>
					</view> -->
					<view class='flex flex-wrap align-center justify-between settingsPage_fd1_0_c0'
						@tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pages/tabBar/passwordLogin/agreements?aid=1`">
						<text class='settingsPage_fd1_0_c0_c0'>用户协议</text>
						<text class='fu-iconfont2  settingsPage_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between settingsPage_fd1_0_c0'
						@tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pages/tabBar/passwordLogin/agreements?aid=2`">
						<text class='settingsPage_fd1_0_c0_c0'>隐私政策</text>
						<text class='fu-iconfont2  settingsPage_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between settingsPage_fd1_0_c0'
						@tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pages/xitongs/helpCente/helpCente`">
						<text class='settingsPage_fd1_0_c0_c0'>帮助与反馈</text>
						<text class='fu-iconfont2  settingsPage_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
					<view class='flex flex-wrap align-center justify-between settingsPage_fd1_1_c4'
						@tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/xitongs/aboutUs/aboutUs`">
						<text class='settingsPage_fd1_0_c0_c0'>关于我们</text>
						<text class='fu-iconfont2  settingsPage_fd1_0_c0_c1'>&#xE7F2;</text>
					</view>
				</view>
				
			</view>
			<view class='flex flex-direction flex-wrap align-stretch settingsPage_fd1_0'>
				<view style="border-bottom: 1px solid #fff;" class='flex flex-wrap align-center justify-between settingsPage_fd1_0_c0'
					@tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/xitongs/CancelAccount/CancelAccount`">
					<text class='settingsPage_fd1_0_c0_c0'>注销账号</text>
					<text class='fu-iconfont2  settingsPage_fd1_0_c0_c1'>&#xE7F2;</text>
				</view>
			</view>

			<!---基本设置flex布局结束-->
			<view :style="{height: (88+paddingBottom) + 'rpx'}" class="flex flex-wrap align-center justify-center benben-position-layout flex settingsPage_flex_2" @tap.stop="popupShow1698226705428=true">
				<text class='settingsPage_fd2_0'>退出登录</text>

			</view>
			<view :style="{height: '128rpx'}"></view>
			<benben-popup v-model="popupShow1698226705428" :mask="true" :mask-close-able="true" mode='center'>
				<!---退出登录flex布局开始-->
				<view class="flex flex-direction flex-wrap align-center system_flex_2">
					<text class='system_fd2_0'>提示</text>
					<text class='system_fd2_1'>确定退出当前账号？</text>
					<view class='flex align-center system_fd2_2'>
						<button class='system_fd2_2_c0' @tap.stop="popupShow1698226705428=false">取消</button>
						<button class='system_fd2_2_c1' @tap.stop="logOutFunc()">确定</button>
					</view>
				</view>
			</benben-popup>


		</view>
	</view>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		components: {},


		data() {
			return {
				"popupShow1698226705428": false,
				"dataMessage": {
					"aid": "",
					"user_nickname": "",
					"user_avatar": "",
					"user_mobile": "",
					"cancel_type": "",
					"create_time": "",
					"status": "",
					"cancel_reason": "",
					"cancel_type_text": ""
				},
				"cancel_type": "1",
				"cancel_reason": "不想使用了",
				"paddingBottom": 0,
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},
		},
		watch: {},
		onLoad(options) {
			this.paddingBottom = uni.getSystemInfoSync().safeAreaInsets.bottom;
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			// this.$store.dispatch('getAppVersion') // 更新版本号
			// this.$store.dispatch('getAppCache') // 更新缓存大小
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			openSetting() {
				let _this = this;
				uni.openSetting({
					success(res) {
						console.log(res.authSetting)
					},
					fail(err) {
						_this.$message.info('打开设置失败，请稍后再试');
					}
				});
			},
			//退出登录
			logOutFunc() {
				this.popupShow1698226705428 = false;
				this.$store.commit('logout')
				this.$urouter.reLaunch(`/pages/tabBar/passwordLogin/passwordLogin`);
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background-size: 100% auto;
		background-color: #f8f8f8;
	}

	.settingsPage_flex_0 {
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-color: #fff;
		background-size: 100% auto !important;
	}

	.settingsPage_fd0_0_c2 {
		padding: 0rpx 0rpx 0rpx 0rpx;
		width: 100rpx;
	}

	.settingsPage_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
	}

	.settingsPage_fd0_0_c0_c0 {
		font-size: 36rpx;
		font-weight: 400;
		color: #333;
	}

	.settingsPage_fd0_0_c0 {
		width: 100rpx;
	}

	.settingsPage_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		line-height: 88rpx;
	}

	.settingsPage_flex_1 {
		font-size: 32rpx;
		padding: 0rpx 32rpx 0rpx 32rpx;
		background: #fff;
	}

	.settingsPage_fd1_1_c4 {
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.settingsPage_fd1_1 {
		background-size: 100% auto !important;
		background: #fff;
	}

	.settingsPage_fd1_0_c0_c1 {
		font-size: 26rpx;
		color: rgba(191, 191, 191, 1);
	}

	.settingsPage_fd1_0_c0_c0 {
		font-size: 32rpx;
		color: var(--benbenFontColor0);
	}

	.settingsPage_fd1_0_c0 {
		border-bottom: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.settingsPage_fd1_0 {
		margin: 24rpx 0rpx 0rpx 0rpx;
		padding: 0 32rpx;
		background: #fff;
	}

	.settingsPage_flex_2 {
		background: #fff;
		width: 750rpx;
		overflow: hidden;
		z-index: 10;
		bottom: calc(0rpx + var(--window-bottom));
		background-size: 100% auto !important;
		// padding-bottom: constant(safe-area-inset-bottom);
		// padding-bottom: env(safe-area-inset-bottom);
	}

	.settingsPage_fd2_0 {
		font-size: 28rpx;
		color: #666;
	}

	.settingsPage_fd3_0_c0_c2_c1_c0 {
		color: #FFFFFF;
		font-size: 34rpx;
		font-weight: 400;
	}

	.settingsPage_fd3_0_c0_c2_c1 {
		height: 71rpx;
		width: 191rpx;
		margin: 0rpx 0rpx 0rpx 16rpx;
		background-size: 100% auto;
	}

	.settingsPage_fd3_0_c0_c2_c0_c0 {
		color: #796446;
		font-size: 34rpx;
		font-weight: 400;
	}

	.settingsPage_fd3_0_c0_c2_c0 {
		height: 71rpx;
		width: 191rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
		background-size: 100% auto;
	}

	.settingsPage_fd3_0_c0_c2 {
		margin: 0rpx 0rpx 70rpx 0rpx;
	}

	.settingsPage_fd3_0_c0_c1 {
		line-height: 44rpx;
		font-size: 32rpx;
		font-weight: 400;
		color: #333333;
		margin: 40rpx 0rpx 62rpx 0rpx;
		text-align: center;
	}

	.settingsPage_fd3_0_c0_c0 {
		color: #333333;
		font-size: 40rpx;
		font-weight: 400;
		margin: 190rpx 0rpx 0rpx 0rpx;
	}

	.settingsPage_fd3_0 {
		width: 580rpx;
		background-size: 100% auto;
	}
	
	.system_flex_2 {
		background: #fff;
		width: 540rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}
	
	.system_fd2_2_c1 {
		border-top: 1px solid #eee;
		border-left: 1px solid #eee;
		background: #fff;
		line-height: 100rpx;
		border-radius: 0rpx 0rpx 16rpx 0rpx;
		font-size: 32rpx;
		color: #F35D2A;
		width: 268rpx;
	}
	
	.system_fd2_2_c0 {
		border-top: 1px solid #eee;
		background: #fff;
		line-height: 100rpx;
		border-radius: 0rpx 0rpx 0rpx 16rpx;
		font-size: 32rpx;
		color: rgba(153, 153, 153, 1);
		width: 268rpx;
	}
	
	.system_fd2_2 {
		margin: 37rpx 0rpx 0rpx 0rpx;
	}
	
	.system_fd2_1 {
		line-height: 44rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #333333;
	}
	
	.system_fd2_0 {
		font-size: 36rpx;
		font-weight: 800;
		line-height: 44rpx;
		color: #333333;
		margin: 40rpx 0rpx 40rpx 0rpx;
	}
</style>